package pojo;

import org.springframework.format.annotation.DateTimeFormat;


import java.util.Date;

public class Student {
    private int s_id;
    private String student_num;
    private String student_name;
    private String gender;
    private int age;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date_of_birth;
    private int class_id;
    private int hostel_id;
    private String phone;
    private String email;
    private String home_address;
    private String emergency_contact;
    private String emergency_contact_phone;
    private String major;
    private String status;
    private String del_flag;
    private String create_by;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date create_time;
    private String update_by;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date update_time;
    private String remark;

    public Student() {
    }

    public Student(int s_id, String student_num, String student_name, String gender, int age, Date date_of_birth, int class_id, int hostel_id, String phone, String email, String home_address, String emergency_contact, String emergency_contact_phone, String major, String status, String del_flag, String create_by, Date create_time, String update_by, Date update_time, String remark) {
        this.s_id = s_id;
        this.student_num = student_num;
        this.student_name = student_name;
        this.gender = gender;
        this.age = age;
        this.date_of_birth = date_of_birth;
        this.class_id = class_id;
        this.hostel_id = hostel_id;
        this.phone = phone;
        this.email = email;
        this.home_address = home_address;
        this.emergency_contact = emergency_contact;
        this.emergency_contact_phone = emergency_contact_phone;
        this.major = major;
        this.status = status;
        this.del_flag = del_flag;
        this.create_by = create_by;
        this.create_time = create_time;
        this.update_by = update_by;
        this.update_time = update_time;
        this.remark = remark;
    }

    /**
     * 获取
     * @return s_id
     */
    public int getS_id() {
        return s_id;
    }

    /**
     * 设置
     * @param s_id
     */
    public void setS_id(int s_id) {
        this.s_id = s_id;
    }

    /**
     * 获取
     * @return student_num
     */
    public String getStudent_num() {
        return student_num;
    }

    /**
     * 设置
     * @param student_num
     */
    public void setStudent_num(String student_num) {
        this.student_num = student_num;
    }

    /**
     * 获取
     * @return student_name
     */
    public String getStudent_name() {
        return student_name;
    }

    /**
     * 设置
     * @param student_name
     */
    public void setStudent_name(String student_name) {
        this.student_name = student_name;
    }

    /**
     * 获取
     * @return gender
     */
    public String getGender() {
        return gender;
    }

    /**
     * 设置
     * @param gender
     */
    public void setGender(String gender) {
        this.gender = gender;
    }

    /**
     * 获取
     * @return age
     */
    public int getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(int age) {
        this.age = age;
    }

    /**
     * 获取
     * @return date_of_birth
     */
    public Date getDate_of_birth() {
        return date_of_birth;
    }

    /**
     * 设置
     * @param date_of_birth
     */

    /**
     * 获取
     * @return class_id
     */
    public int getClass_id() {
        return class_id;
    }

    /**
     * 设置
     * @param class_id
     */
    public void setClass_id(int class_id) {
        this.class_id = class_id;
    }

    /**
     * 获取
     * @return hostel_id
     */
    public int getHostel_id() {
        return hostel_id;
    }

    /**
     * 设置
     * @param hostel_id
     */
    public void setHostel_id(int hostel_id) {
        this.hostel_id = hostel_id;
    }

    /**
     * 获取
     * @return phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 设置
     * @param phone
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 获取
     * @return email
     */
    public String getEmail() {
        return email;
    }

    /**
     * 设置
     * @param email
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * 获取
     * @return home_address
     */
    public String getHome_address() {
        return home_address;
    }

    /**
     * 设置
     * @param home_address
     */
    public void setHome_address(String home_address) {
        this.home_address = home_address;
    }

    /**
     * 获取
     * @return emergency_contact
     */
    public String getEmergency_contact() {
        return emergency_contact;
    }

    /**
     * 设置
     * @param emergency_contact
     */
    public void setEmergency_contact(String emergency_contact) {
        this.emergency_contact = emergency_contact;
    }

    /**
     * 获取
     * @return emergency_contact_phone
     */
    public String getEmergency_contact_phone() {
        return emergency_contact_phone;
    }

    /**
     * 设置
     * @param emergency_contact_phone
     */
    public void setEmergency_contact_phone(String emergency_contact_phone) {
        this.emergency_contact_phone = emergency_contact_phone;
    }

    /**
     * 获取
     * @return major
     */
    public String getMajor() {
        return major;
    }

    /**
     * 设置
     * @param major
     */
    public void setMajor(String major) {
        this.major = major;
    }

    /**
     * 获取
     * @return status
     */
    public String getStatus() {
        return status;
    }

    /**
     * 设置
     * @param status
     */
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * 获取
     * @return del_flag
     */
    public String getDel_flag() {
        return del_flag;
    }

    /**
     * 设置
     * @param del_flag
     */
    public void setDel_flag(String del_flag) {
        this.del_flag = del_flag;
    }

    /**
     * 获取
     * @return create_by
     */
    public String getCreate_by() {
        return create_by;
    }

    /**
     * 设置
     * @param create_by
     */
    public void setCreate_by(String create_by) {
        this.create_by = create_by;
    }

    /**
     * 获取
     * @return create_time
     */
    public Date getCreate_time() {
        return create_time;
    }



    /**
     * 获取
     * @return update_by
     */
    public String getUpdate_by() {
        return update_by;
    }

    /**
     * 设置
     * @param update_by
     */
    public void setUpdate_by(String update_by) {
        this.update_by = update_by;
    }

    /**
     * 获取
     * @return update_time
     */
    public Date getUpdate_time() {
        return update_time;
    }




    /**
     * 获取
     * @return remark
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 设置
     * @param remark
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String toString() {
        return "Student{s_id = " + s_id + ", student_num = " + student_num + ", student_name = " + student_name + ", gender = " + gender + ", age = " + age + ", date_of_birth = " + date_of_birth + ", class_id = " + class_id + ", hostel_id = " + hostel_id + ", phone = " + phone + ", email = " + email + ", home_address = " + home_address + ", emergency_contact = " + emergency_contact + ", emergency_contact_phone = " + emergency_contact_phone + ", major = " + major + ", status = " + status + ", del_flag = " + del_flag + ", create_by = " + create_by + ", create_time = " + create_time + ", update_by = " + update_by + ", update_time = " + update_time + ", remark = " + remark + "}";
    }
}
